import { stasticaRequest, userRequest } from '@/utils/HttpRequest';

export async function myWalletStastica(userId: number) {
  //SwaggerResources

  return stasticaRequest.get<any>('myWalletStastica', { userId: userId });
}

export async function financeChartStastic() {
  //SwaggerResources

  return stasticaRequest.get<any[]>('financeChartStastic');
}
export function homeChartStastic() {
  //SwaggerResources

  return stasticaRequest.get<API.HomeChart>('homeChartStastic');
}
export function loginChartStastic() {
  //SwaggerResources

  return stasticaRequest.get<any>('loginChartStastic');
}
export function findByLevelLogList() {
  //SwaggerResources

  return userRequest.get<any[]>('wallet/findByLevelLogList');
}

//homeOrderChartStastic
export function homeOrderChartStastic() {
  //SwaggerResources

  return stasticaRequest.get<any[]>('homeOrderChartStastic');
}
export function homeAgentChartStastic() {
  //SwaggerResources

  return stasticaRequest.get<any[]>('homeAgentChartStastic');
}
//homeGoodsChartStastic
export function homeGoodsChartStastic(type: number = 0) {
  return stasticaRequest.get<any[]>('homeGoodsChartStastic?type=' + type);
}
